package cn.acewill.wsh.daggerandroid.di.module.main

import android.app.Activity

import cn.acewill.wsh.daggerandroid.di.component.main.MainActivitySubComponent
import cn.acewill.wsh.daggerandroid.mvp.MainActivity
import dagger.Binds
import dagger.Module
import dagger.android.ActivityKey
import dagger.android.AndroidInjector
import dagger.multibindings.IntoMap

/**
 * 作者：[张勇](http://www.cnblogs.com/baiqiantao)
 *
 *
 * 创建时间：2020/1/11 21:30
 *
 *
 * 描述：
 *
 * @author zy
 */
@Module(subcomponents = [MainActivitySubComponent::class])
abstract class MainActivityBindModule {
    @Binds
    @IntoMap
    @ActivityKey(MainActivity::class)
    internal abstract fun bindYourActivityInjectorFactory(builder: MainActivitySubComponent.Builder): AndroidInjector.Factory<out Activity>
}
